package com.hoapital.outpbillwork.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hoapital.outpbillwork.module.entity.OutpDoctorPrescItems;
import com.hoapital.outpbillwork.module.entity.OutpDoctorPrescMaster;
import com.hoapital.outpbillwork.module.mapper.OutpDoctorPrescMasterMapper;
import com.hoapital.outpbillwork.module.service.OutpDoctorPrescMasterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * ÃÅÕïÒ½Éú´¦·½Ö÷¼ÇÂ¼ 服务实现类
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
@Service
public class OutpDoctorPrescMasterServiceImpl extends ServiceImpl<OutpDoctorPrescMasterMapper, OutpDoctorPrescMaster> implements OutpDoctorPrescMasterService {

    @Resource
    private OutpDoctorPrescMasterMapper outpDoctorPrescMasterMapper;

    @Override
    public OutpDoctorPrescMaster getOutpDocPresc(String visitDate, String visitNo) {
        return outpDoctorPrescMasterMapper.getOutpDocPresc(visitDate, visitNo);
    }

    @Override
    public boolean updateFlag(String billNo) {
        return outpDoctorPrescMasterMapper.updateFlag(billNo);
    }

    @Override
    public boolean updateFlagOt(String visitDate, String visitNo) {
        return outpDoctorPrescMasterMapper.updateFlagOt(visitDate, visitNo);
    }

    @Override
    public List<OutpDoctorPrescItems> getAllItems(String pid, String outpId) {
        return outpDoctorPrescMasterMapper.getAllItems(pid, outpId);
    }
}
